package xyz.fuqufyb.aec.feign.scenery;

import com.spingcloud.travel.common.TableResult;
import com.springcloud.travel.entity.Scenery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "travel-scenery",path ="/sys/scenery")
public interface SceneryFeign {
    @PostMapping("/add")
    boolean addScenery(@RequestBody Scenery scenery);

    @PostMapping("/update")
    boolean updateScenery(@RequestBody Scenery scenery);

    @PostMapping("/del")
    boolean delScenery(@RequestParam("ids") String[] ids);

    @GetMapping("/table")
    TableResult getTable(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit);
}
